home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Printing
/
PrintManager.cp
< prev
next >
Wrap
Text File
|
2000-06-23
|
542b
|
35 lines
// PrintManager.cp
#ifndef PrintManager_h
#include "PrintManager.h"
#endif
#ifndef Assert_h
#include "Assert.h"
#endif
#ifndef PrintingError_h
#include "PrintingError.h"
#endif
#ifndef DialogManagerUser_h
#include "DialogManagerUser.h"
#endif
bool PrintManager::isOpen = false;
PrintManager::PrintManager()
{
DialogManagerUser();
Assert( !IsOpen() );
PrOpen();
ThrowPrintingError( PrError() );
isOpen = true;
}
PrintManager::~PrintManager()
{
Assert( IsOpen() );
isOpen = false;
PrClose();
DebugOSError( PrError() );
}